dest=$(pwd)
cd /home/sam
# du -sh .[!.]*
dots=$(echo .[!.]*)
echo $dots | sed "s/ /\n/g" > $dest/dots.txt

mkdir -p $dest/cp/
rm -rf $dest/cp/.[!.]*
cat $dest/iglist |grep -v "^#" |
while read one; do 
    # one=$(echo $one |sed 's/\n//g')
    # match=$(echo $dots | sed "s/ /\n/g" |grep "$one")
    # test -z "$match" && echo "notMatch: $one" || echo "match: $one"
    sed -i "/$one/d" $dest/dots.txt # -e

    # test -z $match && cp -a $one $dest/cp/
done

cat $dest/dots.txt
cat $dest/dots.txt |
while read one; do 
    echo "dealing: $one"
    cp -a $one $dest/cp/
done

# TODO; same iglist of .config; ##fun_call_twice;
du -sh $dest/cp

cp -a /etc/skel $dest/skel_copy
# +refs
# cp -a /usr/share/blackbox/styles/Slax $dest/blackbox_styles_Slax
# cp -a /usr/share/wallpapers/slax_wallpaper.jpg $dest/wallpapers_slax_wallpaper.jpg
# cp -a /usr/share/icons/locolor $dest/icons_locolor
